<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
	<head>
		<title>page of team-manage</title>
		<LINK href="css/default.css" rel=stylesheet>
		<style type="text/css">
#id1 {
	width: 100%;
	height: 100%;
	background-color: #000;
	FILTER: alpha(opacity =   
		                                                         
		     50);
	position: absolute;
	top: 0;
	left: 0;
	moz-opacity: 0.8;
	opacity: .80;
	z-index: 49;
}

#id2 {
	top: 10px;
	position: absolute;
	z-index: 99;
	border: 3px solid #E5E5E5;
	left: 100px;
	font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	background-color: #F5FAFA;
}
</style>
		<script language="javascript" type="text/javascript">
		function show(){
		document.all.id1.style.height=document.body.scrollHeight+"px";
		document.all.id1.style.width=document.body.scrollWidth+"px";
		document.all.id1.style.display="";
		document.all.id2.style.display="";
		}
		function hide(){
		document.all.id1.style.display="none";
		document.all.id2.style.display="none";
		}
		function opchange(o){
		document.bizinfoForm.method.value=o;
		document.bizinfoForm.submit();
		}
		</script>
		<script language="javascript" type="text/javascript"
			src="js/dragelement.js" /></script>
	</head>
	<body>

		<html:form
			action="/bizinfo.do?custId=${custId}&prdInstId=${prdInstId}">
			<table width="880" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
						<td width="3" height="31">
							<img height="31" src="./images/table_01.gif" width="3" />
						</td>
						<td background="./images/table_02.gif" height="31">
							<table cellspacing="0" cellpadding="0" width="146" align="left"
								border="0">
								<tbody>
									<tr>
										<td width="51" background="./images/title_1_bg.gif">
											<img height="31" src="./images/title_1.gif" width="51" />
										</td>
										<td width="95" background="./images/title_1_bg.gif">
											<span class="color_b_666">商机信息速记</span>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
						<td width="3">
							<img height="31" src="./images/table_03.gif" width="3" />
						</td>
					</tr>
					<tr>
						<td width="3" background="./images/table_04.gif" width="3"
							align="right">
							<img height="100%" src="./images/table_04.gif" width="3" />
						</td>
						<td>
							
							<html:hidden property="campcustbizinfo.custId" value="${custId}" />
							<html:hidden property="campcustbizinfo.prdInstId"
								value="${prdInstId}" />
							<table width="770" border="0" align="center" cellpadding="5"
								cellspacing="1" bgcolor="#FF9900">
								<tr>
									<th colspan="4">
										<bean:message key="bizninfo.jsp.getOtherRel" />
										<a href="javascript:opchange('save');"> <u> <bean:message
													key="common.jsp.save" /> </u> </a>
									</th>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.linkman" />
									</td>
									<td>
										<html:text property="campcustbizinfo.linkman"
											value="${bizinfo.linkman}" />
									<td class="alt">
										<bean:message key="bizninfo.jsp.relationship" />
									</td>
									<td>
										<html:text property="campcustbizinfo.relationship"
											value="${bizinfo.relationship}" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contFix" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contFix"
											value="${bizinfo.contFix}" maxlength="20" size="20" />
									</td>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contPhs" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contPhs"
											value="${bizinfo.contPhs}" maxlength="20" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contUc" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contUc"
											value="${bizinfo.contUc}" />
									</td>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contFax" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contFax"
											value="${bizinfo.contFax}" maxlength="20" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.compName1" />
									</td>
									<td>
										<logic:present name="othercomplist">
											<html:select property="campcustbizinfo.compName1">
												<logic:iterate name="othercomplist" id="j">
													<logic:equal name="bizinfo" property="compName1"
														value="${j.codeId}">
														<html:option value="${j.codeId}">
															<bean:write name="j" property="codeName" />
														</html:option>
													</logic:equal>
												</logic:iterate>
												<logic:iterate name="othercomplist" id="j">
													<logic:notEqual name="bizinfo" property="compName1"
														value="${j.codeId}">
														<html:option value="${j.codeId}">
															<bean:write name="j" property="codeName" />
														</html:option>
													</logic:notEqual>
												</logic:iterate>
											</html:select>
										</logic:present>
									</td>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contNbr1" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contNbr1"
											value="${bizinfo.contNbr1}" />

									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.compName2" />
									</td>
									<td>
										<logic:present name="othercomplist">
											<html:select property="campcustbizinfo.compName2">
												<logic:iterate name="othercomplist" id="j">
													<logic:equal name="bizinfo" property="compName2"
														value="${j.codeId}">
														<html:option value="${j.codeId}">
															<bean:write name="j" property="codeName" />
														</html:option>
													</logic:equal>
												</logic:iterate>
												<logic:iterate name="othercomplist" id="j">
													<logic:notEqual name="bizinfo" property="compName2"
														value="${j.codeId}">
														<html:option value="${j.codeId}">
															<bean:write name="j" property="codeName" />
														</html:option>
													</logic:notEqual>
												</logic:iterate>
											</html:select>
										</logic:present>
									</td>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contNbr2" />
									</td>
									<td>
										<html:text property="campcustbizinfo.contNbr2"
											value="${bizinfo.contNbr2}" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.contEmail" />
									</td>
									<td colspan="3">
										<html:text property="campcustbizinfo.contEmail"
											value="${bizinfo.contEmail}" size="72" maxlength="200" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.sendAddr" />
									</td>
									<td colspan="3">
										<html:text size="72" property="campcustbizinfo.sendAddr"
											value="${bizinfo.sendAddr}" />
									</td>
								</tr>
								<tr>
									<td class="alt">
										<bean:message key="bizninfo.jsp.remark" />
									</td>
									<td colspan="3">
										<html:textarea property="campcustbizinfo.remark"
											value="${bizinfo.remark}" rows="5" cols="70" />
									</td>
								</tr>
							</table>
							<br>
							<table width="770" border="0" align="center" cellpadding="5"
								cellspacing="1" bgcolor="#FF9900">
								<tr>
									<th>
										<bean:message key="bizninfo.jsp.bizInfoId" />
									</th>
									<th>
										<bean:message key="bizninfo.jsp.bizInfo" />
									</th>
									<th>
										<bean:message key="bizninfo.jsp.collector" />
									</th>
									<th>
										<bean:message key="bizninfo.jsp.collectTime" />
									</th>
									<th>
										<bean:message key="common.jsp.operation" />
										<a href="bizinfo.do?method=list&indexid=${indexid}"> <u> 
											<bean:message key="common.jsp.addlink" /> </u> </a>
									</th>
								</tr>
								<logic:present name="bizextinfolist">
									<logic:iterate name="bizextinfolist" id="i">
										<tr bgcolor="ffffff">
											<td class="alt">
												<bean:write name="i" property="bizInfoId" />
											</td>
											<td class="alt">
												<bean:write name="i" property="bizInfo" />
											</td>
											<td class="alt">
												<bean:write name="i" property="collector" />
											</td>
											<td>
												<bean:write name="i" property="collecttime" />
											</td>
											<td class="alt">
												<html:link
													href="bizinfo.do?method=list&custId=${i.custId}&prdInstId=${i.prdInstId}&bizInfoId=${i.bizInfoId}&indexid=${indexid}">
													<u><bean:message key="common.jsp.viewlink" /> </u>
												</html:link>
											</td>
										</tr>
									</logic:iterate>
								</logic:present>
							</table>
							<br>
							<logic:present name="bizextinfo" scope="request">
								

									<table width="500" border="0" align="center" cellpadding="5"
										cellspacing="1" bgcolor="#FF9900">
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.bizInfoId" />
											</td>
											<td>
												<html:text readonly="true"
													property="campcustbizextinfo.bizInfoId"
													value="${bizextinfo.bizInfoId}" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.bizInfo" />
											</td>
											<td>
												<html:textarea rows="3" cols="40" property="campcustbizextinfo.bizInfo"
													value="${bizextinfo.bizInfo}" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.collector" />
											</td>
											<td>
												<html:text readonly="true"
													property="campcustbizextinfo.collector"
													value="${bizextinfo.collector}" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.collectTime" />
											</td>
											<td>
												<html:text readonly="true"
													property="campcustbizextinfo.collecttime"
													value="${bizextinfo.collecttime}" />
											</td>
										</tr>
										<html:hidden property="campcustbizextinfo.custId"
											value="${custId}" />
										<html:hidden property="campcustbizextinfo.prdInstId"
											value="${prdInstId}" />
										<html:hidden property="campcustbizextinfo.bizinfoid"
											value="${bizinfoid}" />
										<tr>
											<td colspan="2" align="center" valign="middle">
												<img src='images/button_modify.gif' width="63" height="21" onclick="opchange('saveEx')" />
												&nbsp;&nbsp;
												<img src='images/button_delete.gif' width="63" height="21" onclick="opchange('deleteEx')" />
												&nbsp;&nbsp;
												<img src='images/button_exit.gif' width="63" height="21" onclick="opchange('list')" />
											</td>
										</tr>
									</table>
									<html:hidden property="method" value="save" />
								
								<script language="javascript" type="text/javascript"> </script>
							</logic:present>
							<logic:notPresent name="bizextinfo" scope="request">
								
									<table width="500" border="0" align="center" cellpadding="5"
										cellspacing="1" bgcolor="#FF9900">
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.bizInfoId" />
											</td>
											<td>
												<html:text readonly="true"
													property="campcustbizextinfo.bizInfoId"
													value="${bizextinfo.bizInfoId}" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.bizInfo" />
											</td>
											<td>
												<html:textarea rows="3" cols="40" property="campcustbizextinfo.bizInfo" />
											</td>
										</tr>
										<tr>
											<td>
												<bean:message key="bizninfo.jsp.collector" />
											</td>
											<td>
												<html:text readonly="true"
													property="campcustbizextinfo.collector" value="" />
											</td>
										</tr>
										<html:hidden property="campcustbizextinfo.custId"
											value="${custId}" />
										<html:hidden property="campcustbizextinfo.prdInstId"
											value="${prdInstId}" />
										<html:hidden property="campcustbizextinfo.bizinfoid"
											value="${bizinfoid}" />
										<tr>
											<td align="center" valign="middle" colspan="2">
												<img src='images/button_true.gif' width="63" height="21" onclick="opchange('saveEx')" />
												&nbsp;&nbsp;
												<img src='images/button_cancel.gif' width="63" height="21" onclick="" />
											</td>
										</tr>
									</table>
									<html:hidden property="method" value="save" />
								
								<script type="text/javascript"></script>
							</logic:notPresent>
							<html:hidden property="indexid" value="${indexid}" />
						</td>
						<td background="./images/table_05.gif" width="3" align="left">
							<img height="100%" src="./images/table_05.gif" width="3">
						</td>
					</tr>
					<tr>
						<td height=3 valign="top">
							<img height="12px" src="./images/table_06.gif" width="3px">
						</td>
						<td height=3 valign="top">
							<img height="3px" src="./images/table_07.gif" width="100%">
						</td>
						<td height=3 valign="top">
							<img height="12px" src="./images/table_08.gif" width="3px">
						</td>
					</tr>
				</tbody>
			</table>
		</html:form>
	</body>
</html>